.container
  .my-panel
    %h2 Account Settings
    %hr
    .row
      .col-sm-6.col-sm-offset-1
        = simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f|
          = f.input :name, label: 'Full Name', autofocus: true, input_html: { class: 'form-control' }
          = f.input :email, label: 'Email Address', input_html: { class: 'form-control' }
          - if devise_mapping.confirmable? && resource.pending_reconfirmation?
            %p
              Currently waiting confirmation for:
              = resource.unconfirmed_email
          %hr
          = f.input :password, label: 'New Password', autocomplete: 'off', placeholder: 'Please do not fill this unless you want to change password', required: false, input_html: { class: 'form-control' }
          = f.input :password_confirmation, label: 'Confirm New Password', required: false, input_html: { class: 'form-control' }
          %hr
          = f.input :current_password, label: 'Old Password', placeholder: 'You must enter old password to submit your change', input_html: { class: 'form-control' }
          %br
          = f.button :submit, 'Change', class: 'btn btn-primary'
      .col-sm-4.col-sm-offset-1
        %h4 Unhappy?
        %p
          = link_to 'Delete', registration_path(resource_name), data: { confirm: 'Are you sure?'}, method: :delete
          Your Account.